package com.smart.community.region.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 分区信息更新DTO
 *
 * @author Wu.Liang
 * @since 2025-01-30
 * @version 1.0.0
 */
@Data
@Schema(description = "分区信息更新DTO")
public class ZoneInfoUpdateDTO {

    /**
     * 分区名称
     */
    @Schema(description = "分区名称", required = true)
    @NotBlank(message = "分区名称不能为空")
    @Size(max = 100, message = "分区名称长度不能超过100个字符")
    private String zoneName;

    /**
     * 分区编码
     */
    @Schema(description = "分区编码")
    @Size(max = 50, message = "分区编码长度不能超过50个字符")
    private String zoneCode;

    /**
     * 分区类型
     */
    @Schema(description = "分区类型")
    @Size(max = 50, message = "分区类型长度不能超过50个字符")
    private String zoneType;

    /**
     * 分区颜色
     */
    @Schema(description = "分区颜色")
    @Size(max = 20, message = "分区颜色长度不能超过20个字符")
    private String zoneColor;

    /**
     * 分区描述
     */
    @Schema(description = "分区描述")
    @Size(max = 500, message = "分区描述长度不能超过500个字符")
    private String zoneDescription;

    /**
     * 排序顺序
     */
    @Schema(description = "排序顺序")
    private Integer sortOrder;
}
